package routers

import (
	"gosync/controllers"
	"github.com/astaxie/beego"
)


//主要的路由文件
func init() {

	beego.Notice("##init Project##")

	//路由地址前缀
	routebb.prefix="/admin/project"
	routebb.RouteSet("/list", &controllers.ProjectController{}, "get:List")
	routebb.RouteSet("/list_api", &controllers.ProjectController{}, "get:ListApi")
	routebb.RouteSet("/add", &controllers.ProjectController{}, "get:AddPj")
	routebb.RouteSet("/add", &controllers.ProjectController{}, "post:AddPjDo")
	routebb.RouteSet("/edit", &controllers.ProjectController{}, "get:EditPj")
	routebb.RouteSet("/edit", &controllers.ProjectController{}, "post:EditPjDo")
	routebb.RouteSet("/del", &controllers.ProjectController{}, "post:DelPj")

	routebb.RouteSet("/bind_ip", &controllers.ProjectController{}, "post:BindIp")
	routebb.RouteSet("/bind_find", &controllers.ProjectController{}, "get:GetBindIp")




}
